	var modelAllUrl = 'http://blamcabse.googlecode.com/files/all_buildings_via_plugin21.kmz';
	var modelKmlUrl00 = 'http://blamcabse.googlecode.com/files/Block00.kmz';
	var modelKmlUrl01 = 'http://blamcabse.googlecode.com/files/Block01.kmz';
	var modelKmlUrl10 = 'http://blamcabse.googlecode.com/files/Block10.kmz';
	var modelKmlUrl11 = 'http://blamcabse.googlecode.com/files/block11.kmz';
	
	var building2DKmlUrl = "http://blamcabse.googlecode.com/files/building20080527.kml";

	function addKMLOverlay(map, kmlUrl) {
		var kml = new GGeoXml(kmlUrl);
      		//alert("kml added");
      		map.addOverlay(kml);
	}
	
	function toggleTerrain() {
		if (terrainLayer.getVisibility()) {
  			layerRoot.enableLayerById(ge.LAYER_TERRAIN, false);
		} else {
  			layerRoot.enableLayerById(ge.LAYER_TERRAIN, true);
		}
	}
	
	function toggleBuildings() {
		if (buildingsLayer.getVisibility()) {
  			layerRoot.enableLayerById(ge.LAYER_BUILDINGS, false);
		} else {
  			layerRoot.enableLayerById(ge.LAYER_BUILDINGS, true);
		}
	}
	
	function toggleRoads() {
		if (roadLayer.getVisibility()) {
  			layerRoot.enableLayerById(ge.LAYER_ROADS, false);
		} else {
  			layerRoot.enableLayerById(ge.LAYER_ROADS, true);
		}
	}
	
	// in this sample we will attempt
	// to fetch a  KML file and show it
	function loadKmlCallback(object) {
	  if (!object) {
	    alert('bad or NULL kml:' + object);
	    return;
	  }
	  ge.getFeatures().appendChild(object);
	  var la = ge.createLookAt('');
	  la.set(-37.817478, 144.963226, 45, ge.ALTITUDE_MODE_RELATIVE_TO_GROUND, 
	         0, 60, 500);
	  ge.getView().setAbstractView(la);         
	}
	
	/* Load in the KML / KMZ file for building model
	 * Param: url - absolute url for the building model
	 */
	function loadBuildingKml(url) {
		google.earth.fetchKml(ge, url, loadKmlCallback);
	}
	
	function loadAllBuildings() {
		google.earth.fetchKml(ge, modelAllUrl, loadKmlCallback);
		//google.earth.fetchKml(ge, modelKmlUrl00, loadKmlCallback);
		//google.earth.fetchKml(ge, modelKmlUrl01, loadKmlCallback);
		//google.earth.fetchKml(ge, modelKmlUrl10, loadKmlCallback);
		//google.earth.fetchKml(ge, modelKmlUrl11, loadKmlCallback);
	}
